.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  overflow-y: auto;
}

.login-card {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  animation: slideUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  color: #c9d1d9;
  padding: 30px 20px;
  text-align: center;
}

.login-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.login-form-container {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.login-tabs {
  display: flex;
  margin-bottom: 24px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 4px;
}

.tab-button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #8b949e;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  background: #0d1117;
  color: #c9d1d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-button:hover:not(.active) {
  color: #c9d1d9;
  background: rgba(177, 186, 196, 0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #c9d1d9;
  margin: 0;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid #30363d;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #0d1117;
  color: #c9d1d9;
}

.form-input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-input::placeholder {
  color: #8b949e;
}

.form-select {
  padding: 12px 16px;
  border: 1.5px solid #30363d;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #0d1117;
  color: #c9d1d9;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M4.427 9.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 9H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-select option {
  background: #0d1117;
  color: #c9d1d9;
  padding: 8px 12px;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-icon {
  font-size: 16px;
}

.success-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #16a34a;
  font-size: 14px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  font-size: 16px;
}

.submit-button {
  padding: 14px 24px;
  background: #238636;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.submit-button:hover:not(:disabled) {
  background: #2ea043;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(35, 134, 54, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #30363d;
}

.toggle-text {
  color: #8b949e;
  font-size: 14px;
  margin-right: 8px;
}

.toggle-button {
  background: none;
  border: none;
  color: #58a6ff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.toggle-button:hover {
  color: #79c0ff;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-container {
    padding: 16px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .login-card {
    max-width: none;
    max-height: calc(100vh - 40px);
  }
  
  .login-header {
    padding: 24px 16px;
    flex-shrink: 0;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-form-container {
    padding: 20px;
  }
  
  .form-group {
    gap: 4px;
  }
  
  .login-form {
    gap: 16px;
  }
}

/* 加载状态动画 */
.submit-button:disabled::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 